import { withInstall } from '@ibiz-template/vue3-util';
import { App } from 'vue';
import { registerEditorProvider } from '@ibiz-template/runtime';
import { MdCtrlCXItemProvider } from './provider';
import { MdCtrlCXItem } from './mdctrl-cx-item';

export const IBizMdCtrlCXItem = withInstall(MdCtrlCXItem, function (v: App) {
  v.component(MdCtrlCXItem.name, MdCtrlCXItem);
  registerEditorProvider(
    'ADDRESSPICKUP_GRID_SELECT',
    () => new MdCtrlCXItemProvider(),
  );
  registerEditorProvider(
    'ADDRESSPICKUP_GridSelect',
    () => new MdCtrlCXItemProvider(),
  );
});
export default IBizMdCtrlCXItem;
